-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: dae trace #435
feat: dae trace #435
Conversation
4fdf0a4
to
9b38418
Compare
cmd/trace.go
Outdated
}, | ||
} | ||
|
||
traceCmd.PersistentFlags().IntVarP(&IPVersion, "ip-version", "v", 4, "IP version") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-v is confusing (verbose/version). Can we use -4 and -6?
3ccd3b0
to
cb58b97
Compare
Mark "Ready for review" to trigger PR build. |
cb58b97
to
da5b5de
Compare
da5b5de
to
fe5d8f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This work is owesome!
@jschwinger233 thanks for your amazing work. Has this new feature been tested yet? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧪 Since the PR has been fully tested, please consider merging it.
All good, let's proceed. |
A very interesting feature! Regarding the Go environment variable GOARCH, is that it is not automatically injected for the 'make' command. Would it be better to default to 'go env GOARCH' in 'make' if the user has not set it explicitly? |
This will build the `trace` command which dae added few months ago. See <daeuniverse/dae#435> for detail. Co-authored-by: Aleksana <[email protected]>
Background
This PR adds new subcommand
dae trace
to observe skb on the system.For example, running
dae trace -4 -p tcp -P 233
gives:Notes:
bpf
, sodae trace
only supports some arch:Outstanding issues:
Checklist
Full Changelogs
Issue Reference
Closes #[issue number]
Test Result